package com.itheima.dao;

import com.itheima.domain.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface IUserDao {
    @Insert("insert  into users(username,password,telephone,state)" +
            " values (#{username},#{password},#{telephone},0)")
    void doRegister(Users user);
    @Select("select * from users where username=#{username}" +
            " and password=#{password}")
    Users findUser(Users user);
}
